#include "SMPPSmsSignal.hpp"

using namespace smpp::pdu;

SmsSignal::SmsSignal(const quint16 nValue):
TLV(TLVtags::TAG_SMS_SIGNAL,2),_Value(nValue){}

SmsSignal::SmsSignal(const SmsSignal &nSmsSignal):
TLV(nSmsSignal),_Value(nSmsSignal.getValue()){}

bool SmsSignal::operator ==(const SmsSignal &nSmsSignal) const{
	return (TLV::operator == (nSmsSignal) && 
			_Value == nSmsSignal.getValue());
}

bool SmsSignal::operator !=(const SmsSignal &nSmsSignal) const{
	return !this->operator == (nSmsSignal);
}

SmsSignal &SmsSignal::operator = (const SmsSignal &nSmsSignal){
	if(*this == nSmsSignal)
		return *this;
	TLV::operator = (nSmsSignal);
	_Value = nSmsSignal.getValue();
	return *this;
}

void SmsSignal::setValue(const quint16 nValue){
	_Value = nValue;
}

const quint16 SmsSignal::getValue() const{
	return _Value;
}
